package com.astar.service;

import com.astar.entity.CustomQuestion;
import com.astar.entity.PraCouChapQuestion;
import com.astar.entity.PractiseCourseChapter;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 分类练习-科目-章节-题目  服务类
 * </p>
 *
 * @author jobob
 * @since 2020-01-31
 */
public interface IPraCouChapQuestionService extends IService<PraCouChapQuestion> {
    /**
     * 查询列表
     * @param customQuestion
     * @return
     */
    List<CustomQuestion> selectAll(CustomQuestion customQuestion);

    /**
     * 查询题型
     * @return
     */
    List<CustomQuestion> selectQuestionType();

    /**
     * 查询章节
     * @return
     */
    List<PractiseCourseChapter> selectChapter();

    /**
     * 根据科目的改变查询章节
     * @param id
     * @return
     */
    List<CustomQuestion> changeChapter(Integer id);

    /**
     * 添加
     * @param praCouChapQuestion
     * @return
     */
    int insert(PraCouChapQuestion praCouChapQuestion);


    /**
     * 批量删除
     * @param praCouChapQuestion
     * @return
     */
    int deleteForIds(PraCouChapQuestion praCouChapQuestion);


    /**
     * 查看
     * @param id
     * @return
     */
    CustomQuestion view(Integer id);

    int updateForId(PraCouChapQuestion praCouChapQuestion);

}
